package utils

var token_bucket = make(map[string]string)

func Add(key string, val string) {
	token_bucket[key] = val
}
func Get(key string) string {
	return token_bucket[key]
}
func Del(key string) {
	delete(token_bucket, key)
}
func Clear() {
	token_bucket = make(map[string]string)
}
func Exists(key string) bool {
	_, ok := token_bucket[key]
	return ok
}
